<?php if(isset($data['id'])&&$data['id']>0): ?>
<?php
$liste = modele_tag::getListeByPublication($data['id']);
?>
<h3>Mots clés :</h3>
<div style="margin: 5px 0 0 0;">
    <ul id="liste_tag">
        <?php foreach($liste as $tag): ?>
        <li class="pwe-ui-btn" onclick="javascript:openTag('delete',<?php echo $data['id']; ?>,<?php echo $tag->getId(); ?>);"><?php echo $tag->getTitle(); ?><span class="right ui-icon ui-icon-trash"></span></li>
        <?php endforeach; ?>
    </ul>
</div>

<div style="margin: 15px 0 0 0;">
    <a onclick="javascript:openTag('add',<?php echo $data['id']; ?>)" class="pwe-ui-btn">Ajouter</a>
</div>
<?php endif; ?>